/**
 * 
 */
package org.dragonfire.parser.functions;

import org.dragonfire.parser.Equation;

/**
 * @author Darth Android
 * @date Jun 10, 2007
 */
public class Hex extends Function {

	public String eval(Equation equ, String[] params) {
		return String.format("%X", (new Double(equ.eval(params[0]))).intValue());
	}

	public int minParams() {
		return 1;
	}
}
